/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-11-24 15:38:32
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-11-24 16:06:33
 * @FilePath: \WingsUpdater-main\inc\Platform.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#pragma once

#ifdef __unix
#include <unistd.h>
#include <fcntl.h>
#ifdef __linux
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <sys/time.h>
#include <sys/wait.h> 
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <sys/resource.h>
#include <sched.h>
#include <pthread.h>
#include <termios.h>
#include <netinet/tcp.h>
#include <linux/spi/spidev.h>
#include <sys/mman.h>
#include <sys/signal.h>
#include <signal.h>
#include <sys/select.h>
#endif
#endif

/* platform macro */
#if defined(_WIN32)
#ifdef _WIN64
#define OS_PLATFORM                                 "windows x64"
#else
#define OS_PLATFORM                                 "windows x86"
#endif
#define EXPORT_API                                  __declspec(dllexport)
#elif defined(__unix)
#ifdef __linux
#define OS_PLATFORM                                 "linux"
#else
#define OS_PLATFORM                                 "unix"
#endif
#define EXPORT_API                                  
#else
#define OS_PLATFORM                                 "unknown"
#error("unsupported os")
#define EXPORT_API                                  
#endif

